//
//  AppDelegate+AppService.h
//  SafeEatDemo
//
//  Created by bob on 2017/9/1.
//  Copyright © 2017年 bob. All rights reserved.
//

#import "AppDelegate.h"

#define ReplaceRootViewController(vc) [[AppDelegate shareAppDelegate] replaceRootViewController:vc]

/**
 包含第三方 和 应用内业务的实现，减轻入口代码压力
 */
@interface AppDelegate (AppService)

//获取IP地址
-(void)GetIP;

//初始化服务
-(void)initService;


//初始化用户系统
-(void)initUserManager;

//监听网络状态
- (void)monitorNetworkStatus;

//初始化网络请求配置

-(void)ConfigueNetRequest:(NSString*)IpStr;


//初始化键盘

-(void)ConfigKeyBoard;


//单例
+ (AppDelegate *)shareAppDelegate;

/**
 当前顶层控制器
 */
-(UIViewController*) getCurrentVC;

-(UIViewController*) getCurrentUIVC;

/**
 初始化bugly
 */
-(void)intitWithBugly;

//初始化数据库
-(void)initBaseData;

@end
